package org.springblade.modules.admin.dto.mal;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class MalListDTO {

	/**
	 * 工单id
	 */
	private Long planId;

	/**
	 * 电梯id
	 */
	private Long elevatorId;

	/**
	 * 项目id
	 */
	private Long buildingId;

	/**
	 * 工单计划时间
	 */
	private Date planDate;

	/**
	 * 工单创建时间
	 */
	private Date createTime;

	/**
	 * 工单状态
	 */
	private Integer planStatus;

	/**
	 * 故障原因
	 */
	private String faultReasonItem;

	private Date planBeginTime;

	private Date planEndTime;

	private Integer workMinute;
	private Long workMill;

	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty("已到达时间")
	private Date arriveTime;

	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty("分配时间")
	private Date allocateTime;

	@ApiModelProperty("响应时长")
	private Long allocateDuration;

	@ApiModelProperty("到达时长")
	private Long arriveDuration;

	@ApiModelProperty("到达时长")
	private Integer isOvertime;

	private Long deptId;

	private Long userId;

	private String userName;

	private Long userWorkTime;

	private Integer workOrderType;

}
